package ATBMS.modles;

import java.sql.Time;
import java.util.Date;

/**
 * Flight Modle
 */
public class Flight {

    /**
     * Create a Flight Object use fcode fdest fairline fgooff farrival fbusload fequip
     * @param fcode
     * @param fdest
     * @param fairline
     * @param fgooff
     * @param farrival
     * @param fbusload
     * @param fequip
     * @param fprice
     */
    public Flight(String fcode, String fdest, String fairline, Date fgooff, Date farrival, int fbusload, String fequip, float fprice) {
        this.fcode = fcode;
        this.fdest = fdest;
        this.fairline = fairline;
        this.fgooff = fgooff;
        this.farrival = farrival;
        this.fbusload = fbusload;
        this.fequip = fequip;
        this.fprice = fprice;
    }
    private int fid;
    private String fcode;
    private String fdest;
    private String fairline;
    private Date fgooff;
    private Date farrival;
    private int fbusload;
    private String fequip;
    private float fprice;

    /**
     * Get Price
     * @return
     */
    public float getFprice() {
        return fprice;
    }

    /**
     * Set Price
     * @param fprice
     */
    public void setFprice(float fprice) {
        this.fprice = fprice;
    }

    /**
     * Set arrival time
     * @param farrival
     */
    public void setFarrival(Date farrival) {
        this.farrival = farrival;
    }

    /**
     * Set Go off Time
     * @param fgooff
     */
    public void setFgooff(Date fgooff) {
        this.fgooff = fgooff;
    }

    /**
     * Set flight id
     * @param fid
     */
    public void setFid(int fid) {
        this.fid = fid;
    }

    /**
     * Create a Flight Object
     */
    public Flight() {
    }

    /**
     * Create a Flight Object
     * @param fid
     * @param fcode
     * @param fdest
     * @param fairline
     * @param fgooff
     * @param farrival
     * @param fbusload
     * @param fequip
     * @param fprice
     */
    public Flight(int fid, String fcode, String fdest, String fairline,
            Date fgooff, Date farrival, int fbusload, String fequip, float fprice) {
        this.fid = fid;
        this.fcode = fcode;
        this.fdest = fdest;
        this.fairline = fairline;
        this.fgooff = fgooff;
        this.farrival = farrival;
        this.fbusload = fbusload;
        this.fequip = fequip;
        this.fprice = fprice;
    }

    /**
     * Get airline
     * @return
     */
    public String getFairline() {
        return fairline;
    }

    /**
     * Set airline
     * @param fairline
     */
    public void setFairline(String fairline) {
        this.fairline = fairline;
    }

    /**
     * Get arrival
     * @return
     */
    public Date getFarrival() {
        return farrival;
    }

    /**
     * Set arrival
     * @param farrival
     */
    public void setFarrival(Time farrival) {
        this.farrival = farrival;
    }

    /**
     * Get busload
     * @return
     */
    public int getFbusload() {
        return fbusload;
    }

    /**
     * Set busload
     * @param fbusload
     */
    public void setFbusload(int fbusload) {
        this.fbusload = fbusload;
    }

    /**
     * Get flight code
     * @return
     */
    public String getFcode() {
        return fcode;
    }

    /**
     * Set flight code
     */
    public void setFcode(String fcode) {
        this.fcode = fcode;
    }

    /**
     * Get Destnation
     * @return
     */
    public String getFdest() {
        return fdest;
    }

    /**
     * Set Destnation
     * @param fdest
     */
    public void setFdest(String fdest) {
        this.fdest = fdest;
    }

    /**
     * Get Equip
     * @return
     */
    public String getFequip() {
        return fequip;
    }

    /**
     * Set Equip
     * @param fequip
     */
    public void setFequip(String fequip) {
        this.fequip = fequip;
    }

    /**
     * Get Go off
     * @return
     */
    public Date getFgooff() {
        return fgooff;
    }

    /**
     * Set Go off 
     * @param fgooff
     */
    public void setFgooff(Time fgooff) {
        this.fgooff = fgooff;
    }

    /**
     * Get flight id
     * @return
     */
    public int getFid() {
        return fid;
    }
}
